import Request from '../utils/http.js';
import config from '../utils/config.js'

export default {
	// 获取我的消息数据
	getmessage: function(params) {
		return Request.httpTokenRequest({
			url: '/api/mymessage/getmessage',
			method: 'POST',
			params: params
		});
	},
	
	// 获取我的评论列表
	getcomment: function(params) {
		return Request.httpTokenRequest({
			url: '/api/mymessage/getcomment',
			method: 'POST',
			params: params
		});
	},
	
	// 获取我的赞列表
	getgivelike: function(params) {
		return Request.httpTokenRequest({
			url: '/api/mymessage/getgivelike',
			method: 'POST',
			params: params
		});
	},
	
	// 获取消息通知未读数
	getmessage_count: function(params) {
		return Request.httpTokenRequest({
			url: '/api/mymessage/getmessage_count',
			method: 'POST',
			params: params
		});
	},
	
	// 获取回答问题列表
	answerList: function(params) {
		return Request.httpTokenRequest({
			url: '/api/mymessage/answerList',
			method: 'POST',
			params: params
		});
	},
	
	// 获取公告活动列表 
	getList: function(params) {
		return Request.httpTokenRequest({
			url: '/api/Mymessage/getList',
			method: 'POST',
			params: params
		});
	},
	
	// 获得公告活动列表详情
	getListInfo: function(params) {
		return Request.httpTokenRequest({
			url: '/api/Mymessage/getListInfo',
			method: 'POST',
			params: params
		});
	},

	// 清除未读消息
	clearunread: function(params) {
		return Request.httpTokenRequest({
			url: '/api/mymessage/clearunread',
			method: 'POST',
			params: params
		});
	},
	
	// 检查问题是否存在
	checkquiz: function(params) {
		return Request.httpTokenRequest({
			url: '/api/mymessage/checkquiz',
			method: 'POST',
			params: params
		});
	},

}
